﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SqlserverSessionDemo.Controllers
{
    [Authorize]
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        
        public ActionResult Index()
        {
            if (Session["User"] == null)
            {
                Session["User"] = "Test";
            }

            ViewBag.User = Session["User"].ToString();
            return View();
        }

    }
}
